
import request from "@/config/axios";


export const channelList = (params) => {
    return request.get({ url: '/channel/list',params })
}

//渠道详情
export const channelInfo = (params) => {
    return request.get({ url: '/channel/info',params })
}

//新增渠道
export const channelInsert = (data) => {
    return request.post({ url: '/channel/add', data })
}

//修改渠道
export const channelUpdate = (data) => {
    return request.post({ url: '/channel/edit', data })
}

//删除渠道
export const channelDel = (params) => {
    return request.get({ url: '/channel/del', params })
}

//新增回访记录
export const channelVisitAdd = (data) => {
    return request.post({ url: '/channel/visit-add', data })
}

//渠道回访列表
export const channelVisitList = (params) => {
    return request.get({ url: '/channel/visit-list', params })
}

//获取渠道下拉数据
export const channelListBy = () => {
    return request.get({ url: '/channel/list-by-uid' })
}